import request from '@/utils/request'
// 获取搜索头门店列表
export function getStoreList(data) {
    return request({
        url: '/General/get_store',
        method: 'post',
        data: data
    })
}
// 列表
export function getList(data, page) {
    return request({
        url: '/Stock_platform_transfers/platform_transfer_order_delivery_list/' + (page ? page : 1),
        method: 'post',
        data: data
    })
}
// 获取分页
export function getPage(data) {
    return request({
        url: '/Stock_platform_transfers/platform_transfer_order_delivery_page',
        method: 'post',
        data: data
    })
}

export function getinfoList(data) {
    return request({
        url: '/Stock_platform_transfers/platform_transfer_order_detail',
        method: 'post',
        data: data
    })
}

// 提交
export function save(data,type) {//type1入库  2出库
    let url = type == 1 ? '/Stock_platform_transfers/platform_transfer_order_in_confirm' : '/Stock_platform_transfers/platform_transfer_order_out_confirm';
    return request({
        url: url,
        method: 'post',
        data: data
    })
}
